package com.asion.qkan.ui.contract;

import com.asion.qkan.entry.MaterialBean;
import com.asion.qkan.ui.model.BaseModel;
import com.asion.qkan.ui.presenter.BasePresenter;
import com.asion.qkan.ui.view.BaseView;

/**
 * Created by HCJ on 2016/10/17.
 */

public interface MaterialContract {
    interface Model extends BaseModel{
        void getMaterialDatas(String id,OnMaterialListener onMaterialListener);
    }

    interface View extends BaseView<MaterialBean>{

    }
    abstract static class Presenter extends BasePresenter<View,Model> {
        //定义presenter需要的方法
        public abstract void setAllContentDatas(String id);
    }


    interface OnMaterialListener {
        void onMaterialSuccess(MaterialBean materialBean);
        void onMaterialError(Throwable throwable);
    }
}
